package com.foreveross.taskservice.core.domain.statitics.entity;

import java.util.Date;

import javax.persistence.Column;

import org.openkoala.koala.commons.domain.KoalaUUIDAbstractEntity;

@javax.persistence.Table(name = "engine_statistics_total")
@javax.persistence.Entity
public class EngineStatisticsEntity extends KoalaUUIDAbstractEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@javax.persistence.Id
	@javax.persistence.Column(name = "id", length = 32)
	@javax.persistence.GeneratedValue(generator = "system-uuid")
	@org.hibernate.annotations.GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String id;
	
	@Column(name ="create_time")
	private Date createTime;
	
	@Column(name ="grab_date")
	private Date grabDate;
	
	@Column(name ="channel_id")
	private long channelId;
	
	@Column(name ="channel_name")
	private String channelName;
	
	@Column(name ="source_byte")
	private long sourceByte;
	
	@Column(name ="sum")
	private long sum;	
	
	@Column(name ="unkown_status")
	private int unkownStatus;
	
	@Column(name ="other_status")
	private int otherStatus;
	
	@Column(name ="pause_status")
	private int pauseStatus;
	
	@Column(name ="fetch_satus")
	private int fetchStatus;
	
	@Column(name ="wait_status")
	private int waitStatus; 
	
	@Column(name ="doing_status")
	private int doingStatus;
	
	@Column(name ="success_status")
	private int successStatus;
	
	@Column(name ="crawl_counts")
	private int crawlCounts;
	
	@Override
	public String[] businessKeys() {
		return new String[] { getClass().getName() + id };
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public Date getGrabDate() {
		return grabDate;
	}

	public void setGrabDate(Date grabDate) {
		this.grabDate = grabDate;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public long getChannelId() {
		return channelId;
	}

	public void setChannelId(long channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public long getSourceByte() {
		return sourceByte;
	}

	public void setSourceByte(long sourceByte) {
		this.sourceByte = sourceByte;
	}

	public long getSum() {
		return sum;
	}

	public void setSum(long sum) {
		this.sum = sum;
	}

	public int getUnkownStatus() {
		return unkownStatus;
	}

	public void setUnkownStatus(int unkownStatus) {
		this.unkownStatus = unkownStatus;
	}

	public int getOtherStatus() {
		return otherStatus;
	}

	public void setOtherStatus(int otherStatus) {
		this.otherStatus = otherStatus;
	}

	public int getPauseStatus() {
		return pauseStatus;
	}

	public void setPauseStatus(int pauseStatus) {
		this.pauseStatus = pauseStatus;
	}

	public int getFetchStatus() {
		return fetchStatus;
	}

	public void setFetchStatus(int fetchStatus) {
		this.fetchStatus = fetchStatus;
	}

	public int getWaitStatus() {
		return waitStatus;
	}

	public void setWaitStatus(int waitStatus) {
		this.waitStatus = waitStatus;
	}

	public int getDoingStatus() {
		return doingStatus;
	}

	public void setDoingStatus(int doingStatus) {
		this.doingStatus = doingStatus;
	}

	public int getSuccessStatus() {
		return successStatus;
	}

	public void setSuccessStatus(int successStatus) {
		this.successStatus = successStatus;
	}

	public int getCrawlCounts() {
		return crawlCounts;
	}

	public void setCrawlCounts(int crawlCounts) {
		this.crawlCounts = crawlCounts;
	}
	
	
}
